public class Max {
    static int max(int a, int b) {
        return a > b ? a : b;
    }

    static double max(double a, double b, double c) {
        return (a > b ? a : b) > c ? (a > b ? a : b) : c;
    }

    public static void main(String[] args) {
        System.out.println(max(3,5));
        System.out.println(max(1.1,3.3,2.9));
    }
}
